package demo_01;

public class Proxy implements Rent{
    private Host host;

    public Proxy() {

    }

    public Proxy(Host host) {
        this.host = host;
    }

    @Override
    public void rent() {
        System.out.println("proxy rent start...");
        host.rent();
        System.out.println("proxy rent end...");
    }

    public void before() {
        System.out.println("before");
    }
}
